﻿@{
    ViewBag.Title = "Email Management";
}
@using Helper
<div class="head">
    <div class="isw-grid">
    </div>
    <h1>
        @ViewBag.Title</h1>
    <ul class="buttons">
        <li><a href="#" class="isw-settings"></a>
            <ul class="dd-list" style="display: none;">
             @if (Helper.SessionManagement.Value("pvalue").Contains("C"))
             {
                <li><a href="@Url.Action("AddOrUpdate", "EmailListManagement")"><span class="isw-plus"></span>Add new</a></li>
                 <li><a href="@Url.Action("SendMail", "EmailListManagement")"><span class="isw-plus"></span>Send Email</a></li>
             }
            </ul>
        </li>
    </ul>
    <div class="clear">
    </div>
</div>
<div class="block-fluid table-sorting">
    <div class="row-fluid list">
     @if (Helper.SessionManagement.Value("pvalue").Contains("R"))
     {
        @Html.Action("_ShowAll", "EmailListManagement")
     }
     else
     {
         <span>Not permission</span> 
     }
    </div>
</div>

<script type="text/javascript">
    ///Document Ready jQuery
    $(document).ready(function () {

        reloadGridEmail();
    });
</script>
<script src="@Url.ContentArea("~/Content/javascript/emaillist.js")" type="text/javascript"></script>